<?php
/**
 * 员工权限、财务权限仅限自身数组内容
 * 管理员权限仅限管理员权限+财务权限+员工权限
 * 基础权限为四种角色共同拥有
 */

namespace app\api\common;

class ApiAuth{


   public static function getApiList(){
       return  [
           //超级管理员权限
           "root" => [
               'v1/system/updateSystemInfo',
           ],
           //管理员权限
           "admin" =>[
               'v1/System/getFinanceLoginLog',

               'v1/account/register',
               'v1/account/getUserInfoList',
               'v1/account/updateUserState',
               'v1/account/updateUserInfo',
               'v1/account/updateUserPassword',
               'v1/account/changeUserPassword',

               'v1/AccountClass/getAccountClassList',
               'v1/AccountClass/addAccountClass',
               'v1/AccountClass/updateAccountClassState',
               'v1/AccountClass/updateAccountClassInfo',

               'v1/AccountPosition/getAccountPositionList',
               'v1/AccountPosition/addAccountPosition',
               'v1/AccountPosition/updateAccountPositionState',
               'v1/AccountPosition/updateAccountPositionInfo',


               'v1/GoodsClass/addGoodsClass',
               'v1/GoodsClass/getGoodsClass',
               'v1/GoodsClass/updateGoodsClassInfo',
               'v1/GoodsClass/UpdateGoodsClassState',


               'v1/GoodsClass/addGoodsBrand',
               'v1/GoodsClass/updateGoodsBrand',
               'v1/GoodsClass/updateGoodsBrandState',
               'v1/GoodsClass/getGoodsBrandList',


               'v1/GoodsClass/addGoodsDepot',
               'v1/GoodsClass/updateGoodsDepot',
               'v1/GoodsClass/updateGoodsDepotState',
               'v1/GoodsClass/getGoodsDepotList',

               'v1/GoodsClass/addGoodsWeight',
               'v1/GoodsClass/updateGoodsWeight',
               'v1/GoodsClass/updateGoodsWeightState',
               'v1/GoodsClass/getGoodsWeightList',



               'v1/goods/getGoodsList',
               'v1/goods/addGoodsInfo',
               'v1/goods/updateGoodsInfo',
               'v1/goods/batchUpdateGoodsState',
               'v1/goods/updateGoodsStatus',
               'v1/goods/updateGoodsIsTop',
               'v1/AfterSales/updateAfterSalesInfo',

               'v1/Express/updateExpressData',

               'v1/Refund/updateRefundInfo',
               'v1/System/getAdminBaseData',
           ],
           //财务权限
           'finance' =>[
               'v1/Refund/updateRefundStatus',
               'v1/Reimburse/updateReimburseInfo',
               'v1/Reimburse/updateRefundStatus',
               'v1/Reimburse/updateReimburseStatus',
               'v1/AfterSales/updateAfterSalesInfo',
               'v1/Express/updateExpressData',
               'v1/Refund/updateRefundInfo',
               'v1/Orders/batchUpdateStatus',
               'v1/AfterSales/batchUpdateState',
               'v1/Refund/batchUpdateState',
               'v1/Express/batchUpdateState',
               'v1/goods/batchUpdateGoodsState',
               'v1/Orders/batchUpdateState',
           ],
           //员工权限
           "user" => [
               'v1/account/userapi',
           ],
           "base" =>[
               'v1/Reimburse/getReimburseList',
               'v1/account/login',
               'v1/account/getUserProfileInfo',
               'v1/account/updateUserProfileInfo',
               'v1/account/changeUserPassword',
               'v1/accountClass/publicClassList',
               'v1/accountPosition/publicPositionList',
               'v1/GoodsClass/publicGoodsClass',
               'v1/GoodsClass/publicGoodsBrand',
               'v1/GoodsClass/publicGoodsDepot',
               'v1/GoodsClass/publicGoodsWeight',
               'v1/GoodsClass/publicGoodsWeight',
               'v1/System/uploadImage',
               'v1/System/getSystemInfo',
               'v1/System/getUserBaseData',
               'v1/account/getUserInfo',
               'v1/goods/getGoodsList',
               'v1/AfterSales/getAfterSalesList',
               'v1/AfterSales/addAfterSales',
               'v1/AfterSales/updateAfterSalesIsNotify',
               'v1/Goods/createGoodsInfo',
               'v1/Express/getExpressList',
               'v1/Express/addExpressData',
               'v1/Reimburse/updateReimburseInfo',
               'v1/Reimburse/updateRefundStatus',
               'v1/Reimburse/updateReimburseStatus',
               'v1/AfterSales/updateAfterSalesInfo',
               'v1/Refund/getRefundList',
               'v1/Refund/addRefundInfo',
               'v1/AfterSales/batchUpdateState',
               'v1/AfterSales/batchDelete',
               'v1/Refund/batchUpdateState',
               'v1/Refund/batchDelete',
               'v1/Express/batchUpdateState',
               'v1/Express/batchDelete',
               'v1/goods/batchUpdateGoodsState',
               'v1/goods/batchDelete',
               'v1/Orders/updateOrderInfo',
               'v1/Orders/batchUpdateState',
               'v1/Reimburse/getReimburseList',
               'v1/Reimburse/batchDelete',
               'v1/Reimburse/addReimburseInfo',
               'v1/Orders/getOrderList',
               'v1/Orders/batchDelete',

           ]
       ];
   }
}
